<template>
  <div class="child">
    <h2>child</h2>
    <button @click="increment">+</button>
  </div>
</template>
<script setup>
import { useCounterStore } from '@/stores/counter'
const counter = useCounterStore()
const increment = () => {
  // counter.$patch({ count: counter.count + 1 })
  counter.increment()
}
</script>
<style lang="scss" scoped></style>
